package com.hg.helix.laboratory.demo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hg.helix.laboratory.demo.dao.HgDemoUserInfoDao;
import com.hg.helix.laboratory.demo.entity.HgDemoUserInfoEntity;
import com.hg.helix.laboratory.demo.service.HgDemoUserInfoService;

@Service
public class HgDemoUserInfoServiceImpl implements HgDemoUserInfoService{

	@Autowired
    private HgDemoUserInfoDao hgDemoUserInfoDao;
	/**
	 * 增加数据
	 * 
	 * @param hgDemoUserInfo
	 * @return
	 */
	public Boolean add(HgDemoUserInfoEntity hgDemoUserInfo) {
		return hgDemoUserInfoDao.add(hgDemoUserInfo);
	}

	/**
	 * 根据主键删除数据
	 * 
	 * @param id
	 * @return
	 */
	public Boolean del(Long id) {
		return hgDemoUserInfoDao.del(id);
	}

	/**
	 * 更新数据
	 * 
	 * @param hgDemoUserInfo
	 * @return
	 */
	public Boolean update(HgDemoUserInfoEntity hgDemoUserInfo) {
		return hgDemoUserInfoDao.update(hgDemoUserInfo);
	}

	/**
	 * 根据主键获取数据
	 * 
	 * @param id
	 * @return
	 */
	public HgDemoUserInfoEntity getById(Long id){
		return hgDemoUserInfoDao.getById(id);
	}

	/**
	 * 获取全部数据
	 * 
	 * @return
	 */
	public List<HgDemoUserInfoEntity> getAll() {
		return hgDemoUserInfoDao.getAll();
	}
}
